Leat\Domain\Services\GiftcardCouponService D

Total Complexity 157
Dependencies 17
Dependents 1
Total lines 1,414
Lines of code 866
Logical lines of code 439
Comment lines 250
Methods 28
Properties 5

Methods 28

Method Rating Maintainability Complexity Lines of code
process_giftcard_refund()
B
32 15 117
update_giftcard_balance_after_order()
B
34 15 105
maybe_create_giftcard_coupon_on_get_data()
A
38 13 71
validate_giftcard()
A
40 8 65
validate_giftcard_coupon_on_store_api()
A
44 9 48
maybe_create_giftcard_coupon_before_apply()
A
48 9 34
show_giftcard_notices_on_cart_update()
A
50 9 27
add_giftcard_detected_note()
A
50 8 29
maybe_show_giftcard_success_message()
A
53 8 22
maybe_create_giftcard_coupon_from_code()
S
52 7 25
create_giftcard_coupon()
S
46 5 42
handle_giftcard_coupon_refund()
S
49 5 32
save_giftcard_coupon_meta_box()
S
60 6 14
filter_coupon_list_by_giftcard()
S
59 6 13
handle_giftcard_coupon_refund_without_refund_id()
S
52 4 27
add_giftcard_detection_notes_to_order()
S
57 4 19
render_giftcard_coupon_meta_box()
S
46 2 45
init()
S
48 3 29
render_giftcard_coupon_column()
S
61 3 12
add_giftcard_filter_to_coupon_list()
S
60 3 12
check_giftcard_balance()
S
57 2 17
handle_giftcard_coupon_refund_by_status()
S
58 2 16
add_giftcard_coupon_column()
S
63 3 10
validate_giftcard_coupon()
S
65 3 10
handle_giftcard_coupon_refund_by_status_change()
S
74 2 5
register_giftcard_coupon_meta_box()
S
65 1 10
is_giftcard_coupon()
S
79 1 3
__construct()
S
68 1 7